package com.wnxy.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 交易流水表
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
  @TableName("t_transaction")
@ApiModel(value = "Transaction对象", description = "交易流水表")
public class Transaction implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("订单号")
      @TableId(value = "transaction_id", type = IdType.AUTO)
        private Long transactionId;

      @ApiModelProperty("交易时间")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private Date transactionTime;

      @ApiModelProperty("客户ID")
      private Integer customerId;

      @ApiModelProperty("客户名称")
      private String customerName;

      @ApiModelProperty("交易类型")
      private String transactionType;

      @ApiModelProperty("支付方式")
      private String paymentMethod;

      @ApiModelProperty("金额")
      private BigDecimal amount;

      @ApiModelProperty("所在充电站")
      private Long chargingStationId;

      @ApiModelProperty("充电桩编号")
      private String chargingPileNumber;

      @ApiModelProperty("充电枪号")
      private Long chargingId;

      @ApiModelProperty("交易状态[0:待完成 / 1:已结束 / 2:未完成]")
      private Integer transactionStatus;

      @ApiModelProperty("版本控制")
      private Integer version;

      @ApiModelProperty("逻辑删除[0:正常 / 1:已删除]")
      private Boolean isDeleted;


}
